package com.zys.el.time.ws.service;

import com.alibaba.fastjson2.JSONObject;
import com.zys.el.time.ws.dto.ChatDTO;
import com.zys.el.time.ws.model.Chat;
import com.baomidou.mybatisplus.extension.service.IService;


public interface IChatService extends IService<Chat> {
    /**
     * 存入数据库
     * @param msgData
     */
    void saveInDB(JSONObject msgData);


    /**
     * 保存至数据库，只保存消息id至缓存
     * @param key
     * @param msgData
     */
    Boolean save(String key, JSONObject msgData);
}
